package com.bf.electroplating.pojo.enums;

import lombok.Getter;

@Getter
public enum SpaceFacilityTypeEnum {

    SGC("0", "事故应急池"),
    YSC("1", "初期雨水池"),
    ;

    private final String code;
    private final String desc;

    private SpaceFacilityTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDesc(String code) {
        for (SpaceFacilityTypeEnum item : SpaceFacilityTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }

}
